# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:       王景渊  
# Name:         9.9
# Description:
# Author:       dell
# Date:         2019/3/2
#-------------------------------------------------------------------------------
dict= {'name':'Bill','age':40}
try:
    print(dict['Age'])
except KeyError as e :
    print('异常信息:{}'.format(e))
class Wifimanager:
    def testWifi(self):
        print("testWifi")

wifiManager =Wifimanager()
try:
    wifiManager.testWifi()
except AttributeError as e:
    print('异常信息:{}'.format(e))